package com.zzc.qqchat.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.ArrayList;

public interface SingleToSingleRep extends JpaRepository<SingleToSingle,Integer> {
    @Query(value = "select * from message  where receiver_Id=?1 or sender_Id=?2",nativeQuery = true)
    ArrayList<SingleToSingle> findByReceId(int receId, int sendId);
}
